package com.layui.ad.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.layui.ad.entity.BrokerInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.beans.IntrospectionException;
import java.util.Map;


/**
 * Created by Mybatis Generator 2018/12/11
 */
@Repository
public interface BrokerInfoMapper extends BaseMapper<BrokerInfo> {

    IPage<BrokerInfo> selectRecord();

    Integer setBrokerStatus(@Param("brokerId") Integer brokerId, @Param("status") Integer status);

    //删除用户 broker_info_his表中的
    Integer delBroker(@Param("brokerid") Integer brokerId);

    //根据经纪人ID 获取详情信息
    BrokerInfo getInfoByBrokerId(@Param("brokerId") Integer brokerId);

    //修改经纪人职级
    Integer editBrokerInfo(Map brokerMap);

}